import java.util.Scanner;
public class Main1108 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        String strs = "";

        while (n!=0){
            strs=(char)(n%2+'0')+strs;
            n=n/2;
        }
        if (strs==""){
            System.out.println("0");
        }else System.out.println(strs);
    }
}
